<script setup lang="ts">
import {defineProps, ref} from 'vue';
import router from "@/router";

const props = defineProps({
  name: {
    type: String,
    value: ""
  },
  perfumeSize:{
    type:Number,
    value:0
  },
  brandId:{
    type:Number,
    value:0
  }
});

const goDetail = () => {
  router.push("/brand/detail?id="+props.brandId+"&name="+props.name)
}
</script>

<template>
<div class="brand-info" @click="goDetail">
  <view>{{name}}（{{perfumeSize}}）</view>
  <q-icon name="arrow_forward_ios" />
</div>
</template>

<style scoped lang="scss">
.brand-info{
  margin-top: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #efebe7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
</style>